import { Post } from "generated/prisma";
import { Book } from "@prisma/client";

export interface UserDto {
  id: number;
  username: string;
  password?: string;
  email: string;
  createdAt: Date;
  updatedAt: Date;
  posts?: Post[];
  books?: Book[];
}

export interface UserPaginationDto {
    total: number;
    pageNum: number;
    pageSize: number;
    users: UserDto[];
}